package com.productserver.factory;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Author wjn.
 * @Date 2020/11/17 - 11:04.
 */
@Component
public class ErrorFactory implements FallbackFactory {
    @Override
    public Object create(Throwable throwable) {
        return "sorry";
    }
}
